for i in range(0, 9):
    for j in range(0, 5):
        if (4 >= i >= j) or (i >= 5 and j < 9 - i):
            print("*", end=" ")
    print()
